<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>三组矩形图</title>
	<script src="../static/js/echarts.js"></script>
	<!-- <script src="../static/js/echarts.min.js"></script> -->
</head>
<body>
	<div id="main" style="width: 600px;height:400px;"></div>
</body>
<script type="text/javascript">
// 基于准备好的dom，初始化echarts实例
var myChart = echarts.init(document.getElementById('main'));

// 指定图表的配置项和数据
var option = {
	legend: {},
	tooltip: {},
	xAxis: {
		type: 'category',
		data: ['Matcha Latte', 'Milk Tea', 'Cheese Cocoa', 'Walnut Brownie']
	},
	yAxis: {},
	series : [
		{
			type: 'bar',
			name: '2015',
			data: [89.3, 92.1, 94.4, 85.4]
		},
		{
			type: 'bar',
			name: '2016',
			data: [95.8, 89.4, 91.2, 76.9]
		},
		{
			type: 'bar',
			name: '2017',
			data: [97.7, 83.1, 92.5, 78.1]
		}
	]
};

// 使用刚指定的配置项和数据显示图表。
myChart.setOption(option);
</script>
</html>
